package org.rexsong.sample.petstore.services;

import org.rexsong.sample.petstore.exceptions.PetStoreException;
import org.rexsong.sample.petstore.models.Pet;

import java.util.List;

public interface PetService {
    long save(Pet pet);
    long saveAll(List<Pet> pets);
    long deleteById(long id);
    List<Pet> findAll() throws PetStoreException;
    List<Pet> findByType(String type);
    List<Pet> findByStatus(String status);
}
